import { DefaultLayout } from '@/components/Layout'
import RolePage from '@/components/rbac/Role/page/index.vue'
import RoleUserPage from '@/components/rbac/RoleUser/page/index.vue'
import RoleOrgPage from '@/components/rbac/RoleOrg/page/index.vue'
import RolePositionPage from '@/components/rbac/RolePosition/page/index.vue'
import PermissionTree from '@/components/rbac/Permission/tree/index.vue'

export default {
  path: '',
  meta: {
    title: '角色权限',
  },
  component: DefaultLayout,
  children: [
    {
      path: '/rbac/Permission/tree',
      component: PermissionTree,
      meta: {
        title: '权限',
      },
    },
    {
      path: '/rbac/Role/page',
      component: RolePage,
      meta: {
        title: '角色',
      },
    },
    {
      path: '/rbac/RoleUser/page',
      component: RoleUserPage,
      meta: {
        title: '角色&用户',
      },
    },
    {
      path: '/rbac/RoleOrg/page',
      component: RoleOrgPage,
      meta: {
        menu: false,
        title: '角色&机构',
      },
    },
    {
      path: '/rbac/RolePosition/page',
      component: RolePositionPage,
      meta: {
        menu: false,
        title: '角色&岗位',
      },
    },
  ],
}
